﻿using Rex.Assignment.Application.AppUsers.Dtos;
using Rex.Assignment.Common;
using Rex.Assignment.Domain.Models.Entitys;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace Rex.Assignment.Application.AppUsers
{
    /// <summary>
    /// 系统用户
    /// </summary>
    /// <remarks>
    /// @创 建 者：Rex
    /// @创建日期：2021/2/21 15:59:18
    /// </remarks>
    public interface IUserAppService
    {
        /// <summary>
        /// 获取系统用户信息
        /// </summary>
        /// <typeparam name="type">排序的字段类型</typeparam>
        /// <param name="isAsc">是否升序</param>
        /// <param name="orderByExpression">排序表达式</param>
        /// <param name="whereExpression">条件表达式</param>
        /// <returns></returns>
        DataResult<IList<SysUserDto>> GetSysUserList<type>(bool isAsc, Expression<Func<SysUser, type>> orderByExpression, Expression<Func<SysUser, bool>> whereExpression);

        // ...
    }
}
